home *** CD-ROM | disk | FTP | other *** search
/ Learn Microsoft Visual Basic 6.0 Now / Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO / media / chap01 / b01d015.cc2 < prev    next >
Text File  |  1998-06-07  |  2KB  |  42 lines

  1. 0, In this demonstration, you will learn 
  2. 3, how to create the user interface for the 
  3. 5, Lucky Seven slot machine. Lucky Seven 
  4. 8, contains seven objects that I will create 
  5. 9, with controls in the Visual Basic 
  6. 11, toolbox. First, I'll move a few of the 
  7. 13, programming tools out of the way to make more 
  8. 15, room for our form. I'll drag with the 
  9. 17, sizing handle and then create a bigger form 
  10. 21, so that we can see all the objects at 
  11. 22, once on the screen. I'll start by clicking 
  12. 30, the CommandButton control in the Visual 
  13. 32, Basic toolbox and I'll create a command 
  14. 34, button object on the form by dragging. 
  15. 38, I can resize the CommandButton control 
  16. 41, using the selection handles. And I can 
  17. 44, create a second control by clicking the 
  18. 45, CommandButton control again and dragging 
  19. 49, it on the form. These will be named Spin 
  20. 52, and End when the program runs.To hold 
  21. 55, the output of the Spin windows, I'll 
  22. 57, create three label objects on the form. I'll 
  23. 59, create these objects with the Label 
  24. 61, control in the Visual Basic toolbox. First, 
  25. 63, I'll click the Label control. Then, I'll 
  26. 67, create three windows approximately the 
  27. 68, same size. If I didn't get the sizing 
  28. 77, exactly right, I can resize them with the 
  29. 80, selection handles. This one needs a 
  30. 84, little bit of extra work.To show the name of 
  31. 92, the program, I'll create a Form label 
  32. 94, below the command buttons. When the 
  33. 99, program runs, this label will display the 
  34. 101, phrase, Lucky Seven. And finally, we'll use 
  35. 104, the Image control in the Visual Basic 
  36. 106, toolbox to create an image object on our 
  37. 108, form. The image object will display a 
  38. 110, stack of coins when the user wins the 
  39. 114, program. In the next demonstration, we'll 
  40. 117, configure these seven objects with 
  41. 118, properties settings.
  42. 121, END